package com.example.demo.entity.oss;

import com.alibaba.fastjson.JSONObject;

/**
 * 
 * @title:	OSSResultEntity
 * @author:	许子文
 * @date:	2021年10月8日 
 * @descirption: 文件上传OSS后返回实体的封装
 *
 */
public class OSSResultEntity {
	/**
	 * oss的key
	 */
	private String ossKey;
	
	/**
	 * 完整的httpurl访问路径(当bucket是公共读属性时这个值才可以用,不推荐)
	 */
	private String httpFullUrl;

	public String getOssKey() {
		return ossKey;
	}

	public void setOssKey(String ossKey) {
		this.ossKey = ossKey;
	}

	public String getHttpFullUrl() {
		return httpFullUrl;
	}

	public void setHttpFullUrl(String httpFullUrl) {
		this.httpFullUrl = httpFullUrl;
	}
	
	public OSSResultEntity() {
		super();
	}

	public OSSResultEntity(String ossKey, String httpFullUrl) {
		super();
		this.ossKey = ossKey;
		this.httpFullUrl = httpFullUrl;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return JSONObject.toJSONString(this);
	}
}
